<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    @include('public.h5_head')
    <title>运费列表</title>
    <script src="{{ env('CDN_DOMAIN_NAME') }}/js/commonjs/rem.js"></script>
    <link rel="stylesheet" type="text/css" href="{{ env('CDN_DOMAIN_NAME') }}/css/commoncss/common.css"/>
    <link rel="stylesheet" type="text/css" href="{{ env('CDN_DOMAIN_NAME') }}/css/freight.css"/>
</head>
<script src="{{ env('CDN_DOMAIN_NAME') }}/js/commonjs/iscroll.js"></script>
<script src="{{ env('CDN_DOMAIN_NAME') }}/js/app.js"></script>
<script src="{{ env('CDN_DOMAIN_NAME') }}/js/commonjs/common.js"></script>
<body>
<div id="freight">
    <div class="wrap">
        <div class="container">
            <div class="pull-top">
                <form action="/Business/express" role="form">
                    <div class="info">
                        <span>选择日期</span>
                        <select class="year" name="year" id="year">
                            @if(isset($_GET['year']) && $_GET['year'])
                                <option value="{{$_GET['year']}}">{{ $_GET['year'] }}</option>
                                @else
                                <option value="">请选择</option>
                                @endif

                            <option value="{{ date('Y') }}">{{ date('Y') }}</option>
                            <option value="{{ date('Y')-1 }}">{{ date('Y')-1 }}</option>
                            <option value="{{ date('Y')-2 }}">{{ date('Y')-2 }}</option>
                        </select>
                        <select class="month" name="month" id="month">
                            @if(isset($_GET['month']) && $_GET['month'])
                                <option value="{{$_GET['month']}}">{{ $_GET['month'] }}月</option>
                            @else
                                <option value="">请选择</option>
                            @endif
                            <option value="1">1月</option>
                            <option value="2">2月</option>
                            <option value="3">3月</option>
                            <option value="4">4月</option>
                            <option value="5">5月</option>
                            <option value="6">6月</option>
                            <option value="7">7月</option>
                            <option value="8">8月</option>
                            <option value="9">9月</option>
                            <option value="10">10月</option>
                            <option value="11">11月</option>
                            <option value="12">12月</option>
                        </select>
                    </div>
                    <div class="info">
                        <span>手机号码</span>
                        @if(isset($_GET['user_name']) && $_GET['user_name'])
                            <input class="user_name" maxlength="11" type="text" name="user_name" value="{{ $_GET['user_name'] }} " placeholder="请填写用户手机号码">
                        @else
                            <input class="user_name" maxlength="11" type="text" name="user_name" value="" placeholder="请填写用户手机号码">
                        @endif

                        <button type="submit" class="btn btn-info" id="sort_btn">搜索</button>
                    </div>
                </form>
            </div>
            <p class="info_s">注：日期为必填项，手机号为选填项</p>
            <div class="pull_bottom">
                <div class="info_main">
                    <table class="table table-hover tab" border="1" cellspacing="0" cellpadding="0" bgcolor="">
                        <tr><th >手机号</th><th >用户姓名</th><th>日期</th><th>总费用</th></tr>
                        @foreach($res as $value)
                            <tr>
                                <td>{{$value->user_tel}}</td>
                                <td>{{$value->user_name}}</td>
                                <td>{{$_GET['year'].'-'.$_GET['month']}}</td>
                                <td>{{$value->total_price}}</td>
                            </tr>
                        @endforeach
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<script>
    scroll();
</script>
</html>